package com.wwj.study.interview.chapter2;

import jdk.nashorn.internal.runtime.UserAccessorProperty;

import java.io.Serializable;

public class Member implements Cloneable, Serializable {
    private int id ;
    private String name;


    @Override
    public String toString() {
        return "Member{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {

        return super.clone();
    }
}
